package com.example.mybatis_plus_use.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;

//ArticleListVO是文章列表的视图对象，用于展示文章列表数据。
@Data
public class ArticleListVO {
    @Schema(description = "文章ID")
    private Long id;

    @Schema(description = "文章标题")
    private String title;

    @Schema(description = "封面图")
    private String coverImage;

    @Schema(description = "作者名称")  // 注意这里不是authorId而是作者名称
    private String authorName;

    @Schema(description = "分类名称")  // 注意这里不是categoryId而是分类名称
    private String categoryName;

    @Schema(description = "浏览量")
    private Integer viewCount;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}